GitHub无法访问、443 Operation timed out的解决办法 |
您所在的位置:网站首页 › github access › GitHub无法访问、443 Operation timed out的解决办法 |
#写作不易!如果有用!请点赞、收藏、关注!谢谢! 【发烂渣】提示:如果你想快速看解决方案,请直接滑动到“【发烂渣】解决办法” 。 但你却会错过了一个亿!!!!! 【发烂渣】原因你是不是在访问全球最大的【交友网站】(GitHub)也遇到过以下情况: 1.突然电脑无法访问github了.无论你重启电脑,重置网络,重置你的大脑都无法正常访问了。 2.使用昂贵的【绿色上网】却可以神奇的访问到GitHub。 3.当你使用昂贵的【绿色上网】,开心的在命令行上敲上你熟悉的git 、pull、push等命令进行访问远程库的时候,却给命令行甩你一行【Failed to connect to github.com port 443: Operation timed out】 身为一个专业的开发人员,这些错误是难不到你的!然后你疯狂的百度、Google搜索,然后得到的是为git的设置代理 git config --global https.proxy http://127.0.0.1:1080 git config --global http.proxy http://127.0.0.1:1080当你以为你很快速的解决的时候!!!现实却是打脸的!!! 你得到的命令行再一次甩你一行【connect to 127.0.0.01 port 1080: Connection refused】 你是否也像本人一样,接近【发烂渣】的边缘? 如果你也遇到这些情况,那你很幸运,这篇文章可以帮你解决90%的问题。 【发烂渣】解决办法 1. 打开https://github.com.ipaddress.com/ 如下图:把IP Address 记录下来! 把IP Address 记录下来! 把IP Address 记录下来! 2.打开https://fastly.net.ipaddress.com/github.global.ssl.fastly.net#ipinfo 如下图:把IP Address 记录下来! 把IP Address 记录下来! 把IP Address 记录下来! 3.打开https://github.com.ipaddress.com/assets-cdn.github.com 如下图:把IP Address 记录下来! 把IP Address 记录下来! 把IP Address 记录下来! 4.打开电脑的hosts文件,把下列的东东写在最后,然后保存即可 140.82.113.4(图1的IP Address) github.com 199.232.69.194(图2的IP Address) github.global.ssl.fastly.net 185.199.108.153(图3的IP Address) assets-cdn.github.com 185.199.109.153(图3的IP Address) assets-cdn.github.com 185.199.110.153(图3的IP Address) assets-cdn.github.com 185.199.111.153(图3的IP Address) assets-cdn.github.com效果如图: 提示1: 我是用Mac电脑,Mac的Hosts文件可以通过以下路径进行找打: 1.Finder->Go->Go to Folder 2.然后输入/etc/hosts即可找到. 3.Windows请自行解决 提示2: 这个Hosts文件一般的编辑器还真打不开,可以使用NotePad++、SubLineText等编辑器进行编辑 Ou |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |